#include "TaskQueue.h"
#include "Consumer.h"
#include "Producer.h"
#include <thread>
using std::thread;


int main(void){
    TaskQueue taskQueue(3);
    Producer producer1;
    Consumer consumer1;

    thread pro(&Producer::produce, &producer1, std::ref(taskQueue));
    thread con(&Consumer::consume, &consumer1, std::ref(taskQueue));



    pro.join();
    con.join();
    return 0;
}